<?php

class Reale_Model_Estate_Search extends Reale_Model_Estate_Generic
{
	
	/**
	 * 
	 * Stores enquiry entity mapper
	 * @var Reale_Model_ProjectMapper
	 * 
	 */
	protected $_mapper;
	
		
	/**
	 * 
	 * Setter function for project mapper 
	 * @param Reale_Model_ProjectMapper
	 */
	public function setMapper($mapper) {
		$this->_mapper = $mapper;
		return $this;
	}
	
	/**
	 * 
	 * Getter function for enquiry mapper
	 * @return Reale_Model_Estate_SearchMapper $_mapper
	 */
	public function getMapper(){
        if (null === $this->_mapper) {
            $this->setMapper(new Reale_Model_Estate_SearchMapper());
        }
        return $this->_mapper;
    }
    
    public function search(){
        return $this->getMapper()->search($this);
    }
	
}

